
<%@ page session="true"%>

<%
    String email = "";
    String pass = "";

    if (request.getParameter("email") != null) {
        email = request.getParameter("email");
    }

    if (request.getParameter("pass") != null) {
        email = request.getParameter("pass");
    }

    if (email.equals("RENE") && pass.equals("01")) {
        HttpSession sesionOk = request.getSession();
        sesionOk.setAttribute("email", email);

%>

<jsp:forward page="menu.jsp"/>
<%
} else {
%>
<jsp:forward page="index.jsp">
    <jsp:param name="error" value="Usuario y/o clave 
               incorrectos.<br>Vuelve a intertarlo."/>
</jsp:forward>
<%    
    }
%>